import request from '@/utils/request'

// 查询凭证子列表
export function listEvi(query) {
  return request({
    url: '/evidence/evi/list',
    method: 'get',
    params: query
  })
}
export function listById(evidentId) {
  return request({
    url: '/evidence/evi/listById?evidentId='+evidentId,
    method: 'get',
  })
}

// 查询凭证子详细
export function getEvi(id) {
  return request({
    url: '/evidence/evi/' + id,
    method: 'get'
  })
}

// 新增凭证子
export function addEvi(data) {
  return request({
    url: '/evidence/evi',
    method: 'post',
    data: data
  })
}

// 新增模板
export function addModel(data) {
  return request({
    url: '/evidence/evi/addModel',
    method: 'post',
    data: data
  })
}

// 修改凭证子
export function updateEvi(data) {
  return request({
    url: '/evidence/evi',
    method: 'put',
    data: data
  })
}

// 删除凭证子
export function delEvi(id) {
  return request({
    url: '/evidence/evi/' + id,
    method: 'delete'
  })
}
